// pages/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      swiperList:[
        "/images/history.jpg",
        "/images/banner1.gif",
        "/images/banner2.gif",
        "/images/banner3.jpg",
        "/images/banner4.gif"
      ],
      swiperList_1:[
         "/images/invite.jpg",
         "/images/tome.png",
         "/images/start2.png"
      ],
      swiperTextList:[{
        bigTitle : "喝咖啡挑战",
        lowTitle:"再喝2杯达成"
      },
      {
        bigTitle : "本月咖啡星人",
        lowTitle:"马上冲榜"
      },
      {
        bigTitle : "lucky送福利",
        lowTitle:"领4.8折券"
      },
      {
        bigTitle : "邀请好友",
        lowTitle:"每邀1位好友各得20元"
      }
      ],
      goodsList:[
        {
          img:"/images/coffee6.webp",
          name:"褚橙拿铁",
          price:"￥21",
          add:"+"
        },
        {
          img:"/images/coffee5.webp",
          name:"酱香拿铁",
          price:"￥19",
          add:"+"
        },{
          img:"/images/history.jpg",
          name:"生椰拿铁",
          price:"￥20",
          add:"+"
        },{
          img:"/images/coffee6.webp",
          name:"烤椰拿铁",
          price:"￥21",
          add:"+"
        }
      ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  toMenu(){
    wx.switchTab({
      url: '/pages/menu/menu',
    })
  },
  toShop(){
    wx.switchTab({
      url: '/pages/shop/shop',
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})